@echo off
echo 1. set npm source to official
echo 2. set npm source to taobao
echo 3. set npm source to tencent
set /p input=select:

if %input%==1 (
npm config set registry https://registry.npmjs.org
echo npm source = official
pause
) else if %input%==2 (
npm config set registry https://registry.npmmirror.com
echo npm source = taobao
pause
) else if %input%==3 (
npm config set registry http://mirrors.cloud.tencent.com/npm/
echo npm source = tencent
pause
)

